import request from '@/router/axios';
import { data } from 'jquery';

export const getList = (current, size, params) => {
  return request({
    url: `/api/mes-warehouse/material/receipt/order/pc/page`,
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  });
};

export const getDetail = (receiptOrderNo) => {
  return request({
    url: '/api/mes-warehouse/material/receipt/order/detail-by-receipt-order-no',
    method: 'get',
    params: {
      receiptOrderNo
    }
  });
};

export const getDetailList = (receiptOrderDetailId) => {
  return request({
    url: '/api/mes-warehouse/material/receipt/order/receipt-detail-purchase-by-receipt-detail-id',
    method: 'get',
    params: { receiptOrderDetailId }
  });
};
